package ua.maxicash.dto;

import ua.maxicash.vo.City;
import ua.maxicash.vo.Region;

public class CityJsonDto {

	private Long idCity;
	private String ruName;
	private String enName;

	public CityJsonDto() {
	}

	public Long getIdCity() {
		return idCity;
	}

	public void setIdCity(Long idCity) {
		this.idCity = idCity;
	}

	public String getRuName() {
		return ruName;
	}

	public void setRuName(String ruName) {
		this.ruName = ruName;
	}

	public String getEnName() {
		return enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}
	
	public static CityJsonDto createFromCity(City city){
		
		CityJsonDto cjd = new CityJsonDto();
		cjd.setEnName(city.getEnName());
		cjd.setRuName(city.getRuName());
		cjd.setIdCity(city.getIdCity());
		
		return cjd;
		
	}

}
